package com.netjava.service.impl;

import com.netjava.dao.ICardDAO;
import com.netjava.pojo.Card;
import com.netjava.service.ICardService;

/**
 * 实现点卡业务的实施类。
 * @author nana
 *
 */
public class CardService implements ICardService{
	private ICardDAO cardDao;
	public void addCard(Card card) {
		cardDao.save(card);
		
	}

	public void delete(Card card) {
		cardDao.delete(card);
		
	}

	public Card geCardtById(Integer id) {
		return cardDao.findById(id);
	}

	public ICardDAO getCardDao() {
		return cardDao;
	}

	public void setCardDao(ICardDAO cardDao) {
		this.cardDao = cardDao;
	}
	
}
